#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
int main(void)
{
    FILE *fp;
    fp = fopen("tmp","r");
    if(fp == NULL)
    {
        //fprintf(stderr, "fopen() failed! errno = %d\n", errno);
        //perror("fopen() failed!\n");
        fprintf(stderr,"fopen():%s\n", strerror(errno));
        exit(1);
    }
    puts("OK!");
    exit(0);
}
